package com.wuyu.ibatis.session;

import com.wuyu.ibatis.config.Configuration;
import com.wuyu.ibatis.executor.Executor;

import java.io.IOException;

public class DefaultSqlSession implements SqlSession {

    private final Configuration configuration;
    private final Executor executor;
    private final boolean autoCommit;

    public DefaultSqlSession(Configuration configuration, Executor executor, boolean autoCommit) {
        this.configuration = configuration;
        this.executor = executor;
        this.autoCommit = autoCommit;
    }

    @Override
    public void close() throws IOException {

    }

    @Override
    public Configuration getConfiguration() {
        return configuration;
    }
}
